package cn.mymall.service.impl;

import cn.mymall.entity.City;
import cn.mymall.mapper.CityMapper;
import cn.mymall.service.ICityService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 城市表 服务实现类
 * </p>
 *
 * @author liqilun
 * @since 2022-10-23
 */
@Service
public class CityServiceImpl extends BaseServiceImpl<CityMapper, City> implements ICityService {

    @Override
    public City getByCityCode(Integer cityCode) {
        return getOne(new QueryWrapper<City>().eq("city_code", cityCode));
    }
}
